home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / tests / grant.res < prev    next >
Encoding:
Text File  |  2003-01-21  |  21.5 KB  |  447 lines  |  [TEXT/ttxt]

  1. delete from user where user='grant_user' or user='grant_user2'
  2. delete from db where user='grant_user'
  3. delete from tables_priv
  4. delete from columns_priv
  5. lock tables mysql.user write
  6. flush privileges
  7. unlock tables
  8. drop database grant_test
  9. Error in execute: Can't drop database 'grant_test'. Database doesn't exist
  10. create database grant_test
  11. Connecting grant_user
  12. Access denied for user: '@localhost' to database 'grant_test'
  13. grant select on *.* to grant_user@localhost
  14. set password FOR grant_user2@localhost = password('test')
  15. Error in execute: Can't find any matching row in the user table
  16. set password FOR grant_user=password('test')
  17. Connecting grant_user
  18. Access denied for user: 'grant_user@localhost' (Using password: NO)
  19. set password FOR grant_user=''
  20. Connecting grant_user
  21. select * from mysql.user where user = 'grant_user'
  22. localhost    grant_user        Y    N    N    N    N    N    N    N    N    N    N    N    N    N
  23.  
  24. select * from mysql.db where user = 'grant_user'
  25. grant select on *.* to grant_user@localhost,grant_user@localhost
  26. insert into mysql.user (host,user) values ('error','grant_user')
  27. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  28. update mysql.user set host='error' WHERE user='grant_user'
  29. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  30. create table grant_test.test (a int,b int)
  31. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  32. grant select on *.* to grant_user2@localhost
  33. Error in execute: Access denied for user: 'grant_user@localhost' (Using password: NO)
  34. revoke select on grant_test.test from grant_user@opt_host
  35. Error in execute: There is no such grant defined for user 'grant_user' on host 'opt_host'
  36. revoke select on grant_test.* from grant_user@opt_host
  37. Error in execute: There is no such grant defined for user 'grant_user' on host 'opt_host'
  38. revoke select on *.* from grant_user
  39. Error in execute: There is no such grant defined for user 'grant_user' on host '%'
  40. grant select on grant_test.not_exists to grant_user
  41. Error in execute: Table 'grant_test.not_exists' doesn't exist
  42. grant FILE on grant_test.test to grant_user
  43. Error in execute: Illegal GRANT/REVOKE command. Please consult the manual which privileges can be used.
  44. grant select on *.* to wrong___________user_name
  45. Error in execute: The host or user argument to GRANT is too long
  46. grant select on grant_test.* to wrong___________user_name
  47. Error in execute: The host or user argument to GRANT is too long
  48. grant select on grant_test.test to grant_user with grant option
  49. Error in execute: grant command denied to user: 'grant_user@localhost' for table 'test'
  50. set password FOR ''@''=''
  51. Error in execute: You are using MySQL as an anonymous users and anonymous users are not allowed to change passwords
  52. set password FOR root@localhost = password('test')
  53. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  54. revoke select on *.* from grant_user@localhost
  55. grant create on *.* to grant_user@localhost
  56. Connecting grant_user
  57. create table grant_test.test (a int,b int)
  58. grant select(c) on grant_test.test to grant_user@localhost
  59. Error in execute: Unknown column 'c' in 'test'
  60. revoke select(c) on grant_test.test from grant_user@localhost
  61. Error in execute: There is no such grant defined for user 'grant_user' on host 'localhost' on table 'test'
  62. grant select on grant_test.test to wrong___________user_name
  63. Error in execute: The host or user argument to GRANT is too long
  64. INSERT INTO grant_test.test values (2,0)
  65. Error in execute: insert command denied to user: 'grant_user@localhost' for table 'test'
  66. grant ALL PRIVILEGES on *.* to grant_user@localhost
  67. REVOKE INSERT on *.* from grant_user@localhost
  68. Connecting grant_user
  69. INSERT INTO grant_test.test values (1,0)
  70. Error in execute: insert command denied to user: 'grant_user@localhost' for table 'test'
  71. grant INSERT on *.* to grant_user@localhost
  72. Connecting grant_user
  73. INSERT INTO grant_test.test values (2,0)
  74. select count(*) from grant_test.test
  75. 1
  76.  
  77. revoke SELECT on *.* from grant_user@localhost
  78. Connecting grant_user
  79. select count(*) from grant_test.test
  80. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  81. INSERT INTO grant_test.test values (3,0)
  82. grant SELECT on *.* to grant_user@localhost
  83. Connecting grant_user
  84. select count(*) from grant_test.test
  85. 2
  86.  
  87. revoke ALL PRIVILEGES on *.* from grant_user@localhost
  88. Connecting grant_user
  89. Access denied for user: 'grant_user@localhost' to database 'grant_test'
  90. delete from user where user='grant_user'
  91. flush privileges
  92. delete from user where user='grant_user'
  93. flush privileges
  94. grant select on grant_test.* to grant_user@localhost
  95. select * from mysql.user where user = 'grant_user'
  96. localhost    grant_user        N    N    N    N    N    N    N    N    N    N    N    N    N    N
  97.  
  98. select * from mysql.db where user = 'grant_user'
  99. localhost    grant_test    grant_user    Y    N    N    N    N    N    N    N    N    N
  100.  
  101. Connecting grant_user
  102. select count(*) from grant_test.test
  103. 2
  104.  
  105. select * from mysql.user where user = 'grant_user'
  106. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  107. insert into grant_test.test values (4,0)
  108. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  109. update grant_test.test set a=1
  110. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  111. delete from grant_test.test
  112. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  113. create table grant_test.test2 (a int)
  114. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  115. ALTER TABLE grant_test.test add c int
  116. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  117. CREATE INDEX dummy ON grant_test.test (a)
  118. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  119. drop table grant_test.test
  120. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  121. grant ALL PRIVILEGES on grant_test.* to grant_user2@localhost
  122. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  123. grant ALL PRIVILEGES on grant_test.* to grant_user@localhost WITH GRANT OPTION
  124. Connecting grant_user
  125. insert into grant_test.test values (5,0)
  126. REVOKE ALL PRIVILEGES on * from grant_user@localhost
  127. Error in execute: There is no such grant defined for user 'grant_user' on host 'localhost'
  128. REVOKE ALL PRIVILEGES on *.* from grant_user@localhost
  129. REVOKE ALL PRIVILEGES on grant_test.* from grant_user@localhost
  130. REVOKE ALL PRIVILEGES on grant_test.* from grant_user@localhost
  131. Connecting grant_user
  132. insert into grant_test.test values (6,0)
  133. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  134. REVOKE GRANT OPTION on grant_test.* from grant_user@localhost
  135. Connecting grant_user
  136. Access denied for user: 'grant_user@localhost' to database 'grant_test'
  137. grant ALL PRIVILEGES on grant_test.* to grant_user@localhost
  138. Connecting grant_user
  139. select * from mysql.user where user = 'grant_user'
  140. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  141. insert into grant_test.test values (7,0)
  142. update grant_test.test set a=3 where a=2
  143. delete from grant_test.test where a=3
  144. create table grant_test.test2 (a int not null)
  145. alter table grant_test.test2 add b int
  146. create index dummy on grant_test.test2 (a)
  147. drop table grant_test.test2
  148. show tables from grant_test
  149. test
  150.  
  151. insert into mysql.user (host,user) values ('error','grant_user',0)
  152. Error in execute: Access denied for user: 'grant_user@localhost' to database 'mysql'
  153. revoke ALL PRIVILEGES on grant_test.* from grant_user@localhost
  154. select * from mysql.user where user = 'grant_user'
  155. localhost    grant_user        N    N    N    N    N    N    N    N    N    N    N    N    N    N
  156.  
  157. select * from mysql.db where user = 'grant_user'
  158. Connecting grant_user
  159. Access denied for user: 'grant_user@localhost' to database 'grant_test'
  160. grant create on grant_test.test2 to grant_user@localhost
  161. Connecting grant_user
  162. create table grant_test.test2 (a int not null)
  163. show tables
  164. test2
  165.  
  166. show columns from test
  167. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  168. show keys from test
  169. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  170. show columns from test2
  171. a    int(11)            0        
  172.  
  173. show keys from test2
  174. select * from test
  175. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  176. grant insert on grant_test.test to grant_user@localhost
  177. show tables
  178. test
  179. test2
  180.  
  181. insert into grant_test.test values (8,0)
  182. update grant_test.test set b=1
  183. Error in execute: update command denied to user: 'grant_user@localhost' for table 'test'
  184. grant update on grant_test.test to grant_user@localhost
  185. update grant_test.test set b=2
  186. delete from grant_test.test
  187. Error in execute: delete command denied to user: 'grant_user@localhost' for table 'test'
  188. grant delete on grant_test.test to grant_user@localhost
  189. delete from grant_test.test where a=1
  190. Error in execute: select command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  191. update grant_test.test set b=3 where b=1
  192. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  193. update grant_test.test set b=b+1
  194. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  195. select * from test
  196. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  197. grant select on grant_test.test to grant_user@localhost
  198. delete from grant_test.test where a=1
  199. update grant_test.test set b=2 where b=1
  200. update grant_test.test set b=b+1
  201. select count(*) from test
  202. 3
  203.  
  204. create table grant_test.test3 (a int)
  205. Error in execute: create command denied to user: 'grant_user@localhost' for table 'test3'
  206. alter table grant_test.test2 add c int
  207. Error in execute: alter command denied to user: 'grant_user@localhost' for table 'test2'
  208. grant alter on grant_test.test2 to grant_user@localhost
  209. alter table grant_test.test2 add c int
  210. create index dummy ON grant_test.test (a)
  211. Error in execute: index command denied to user: 'grant_user@localhost' for table 'test'
  212. grant index on grant_test.test2 to grant_user@localhost
  213. create index dummy ON grant_test.test2 (a)
  214. insert into test2 SELECT a,a from test
  215. Error in execute: insert command denied to user: 'grant_user@localhost' for table 'test2'
  216. grant insert on test2 to grant_user@localhost
  217. Error in execute: Table 'mysql.test2' doesn't exist
  218. grant insert(a) on grant_test.test2 to grant_user@localhost
  219. insert into test2 SELECT a,a from test
  220. Error in execute: insert command denied to user: 'grant_user@localhost' for column 'c' in table 'test2'
  221. grant insert(c) on grant_test.test2 to grant_user@localhost
  222. insert into test2 SELECT a,a from test
  223. select count(*) from test2,test
  224. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test2'
  225. select count(*) from test,test2
  226. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test2'
  227. replace into test2 SELECT a from test
  228. Error in execute: update command denied to user: 'grant_user@localhost' for table 'test2'
  229. grant update on grant_test.test2 to grant_user@localhost
  230. replace into test2 SELECT a,a from test
  231. Error in execute: delete command denied to user: 'grant_user@localhost' for table 'test2'
  232. grant DELETE on grant_test.test2 to grant_user@localhost
  233. replace into test2 SELECT a,a from test
  234. insert into test (a) SELECT a from test2
  235. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test2'
  236. drop table grant_test.test2
  237. Error in execute: drop command denied to user: 'grant_user@localhost' for table 'test2'
  238. grant select on grant_test.test2 to grant_user@localhost with grant option
  239. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test2'
  240. grant drop on grant_test.test2 to grant_user@localhost with grant option
  241. grant drop on grant_test.test2 to grant_user@localhost with grant option
  242. grant select on grant_test.test2 to grant_user@localhost with grant option
  243. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test2'
  244. rename table grant_test.test2 to grant_test.test3
  245. Error in execute: insert command denied to user: 'grant_user@localhost' for table 'test3'
  246. grant CREATE,DROP on grant_test.test3 to grant_user@localhost
  247. rename table grant_test.test2 to grant_test.test3
  248. Error in execute: insert command denied to user: 'grant_user@localhost' for table 'test3'
  249. create table grant_test.test3 (a int)
  250. grant INSERT on grant_test.test3 to grant_user@localhost
  251. drop table grant_test.test3
  252. rename table grant_test.test2 to grant_test.test3
  253. rename table grant_test.test3 to grant_test.test2
  254. Error in execute: alter command denied to user: 'grant_user@localhost' for table 'test3'
  255. grant ALTER on grant_test.test3 to grant_user@localhost
  256. rename table grant_test.test3 to grant_test.test2
  257. revoke DROP on grant_test.test2 from grant_user@localhost
  258. rename table grant_test.test2 to grant_test.test3
  259. drop table if exists grant_test.test2,grant_test.test3
  260. Error in execute: drop command denied to user: 'grant_user@localhost' for table 'test2'
  261. drop table if exists grant_test.test2,grant_test.test3
  262. create database grant_test
  263. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  264. drop database grant_test
  265. Error in execute: Access denied for user: 'grant_user@localhost' to database 'grant_test'
  266. flush tables
  267. Error in execute: Access denied for user: 'grant_user@localhost' (Using password: NO)
  268. flush privileges
  269. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  270. localhost    grant_test    grant_user    test2    root@localhost    Update,Delete,Create,Grant,Index,Alter    Insert
  271. localhost    grant_test    grant_user    test    root@localhost    Select,Insert,Update,Delete    
  272. localhost    grant_test    grant_user    test3    root@localhost    Insert,Create,Drop,Alter    
  273.  
  274. revoke ALL PRIVILEGES on grant_test.test from grant_user@localhost
  275. revoke ALL PRIVILEGES on grant_test.test2 from grant_user@localhost
  276. revoke ALL PRIVILEGES on grant_test.test3 from grant_user@localhost
  277. revoke GRANT OPTION on grant_test.test2 from grant_user@localhost
  278. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  279. select count(a) from test
  280. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  281. delete from grant_test.test where a=2
  282. Error in execute: delete command denied to user: 'grant_user@localhost' for table 'test'
  283. delete from grant_test.test where A=2
  284. Error in execute: delete command denied to user: 'grant_user@localhost' for table 'test'
  285. update test set b=5 where b>0
  286. Error in execute: update command denied to user: 'grant_user@localhost' for table 'test'
  287. grant update(b),delete on grant_test.test to grant_user@localhost
  288. revoke update(a) on grant_test.test from grant_user@localhost
  289. Error in execute: There is no such grant defined for user 'grant_user' on host 'localhost' on table 'test'
  290. delete from grant_test.test where a=2
  291. Error in execute: select command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  292. update test set b=5 where b>0
  293. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  294. grant select(a),select(b) on grant_test.test to grant_user@localhost
  295. delete from grant_test.test where a=2
  296. delete from grant_test.test where A=2
  297. update test set b=5 where b>0
  298. update test set a=11 where b>5
  299. Error in execute: update command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  300. select a,A from test
  301. 8    8
  302. 5    5
  303. 7    7
  304.  
  305. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  306. localhost    grant_test    grant_user    test    root@localhost    Delete    Select,Update
  307.  
  308. revoke ALL PRIVILEGES on grant_test.test from grant_user@localhost
  309. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  310. revoke GRANT OPTION on grant_test.test from grant_user@localhost
  311. Error in execute: There is no such grant defined for user 'grant_user' on host 'localhost' on table 'test'
  312. grant select(a) on grant_test.test to grant_user@localhost
  313. show full columns from test
  314. a    int(11)    YES        NULL        select
  315. b    int(11)    YES        NULL        
  316.  
  317. grant insert (b), update (b) on grant_test.test to grant_user@localhost
  318. select count(a) from test
  319. 3
  320.  
  321. select count(skr.a) from test as skr
  322. 3
  323.  
  324. select count(a) from test where a > 5
  325. 2
  326.  
  327. insert into test (b) values (5)
  328. insert into test (b) values (a)
  329. update test set b=3 where a > 0
  330. select * from test
  331. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  332. select b from test
  333. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  334. select a from test where b > 0
  335. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  336. insert into test (a) values (10)
  337. Error in execute: insert command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  338. insert into test (b) values (b)
  339. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  340. insert into test (a,b) values (1,5)
  341. Error in execute: insert command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  342. insert into test (b) values (1),(b)
  343. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  344. update test set b=3 where b > 0
  345. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  346. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  347. localhost    grant_test    grant_user    test    root@localhost        Select,Insert,Update
  348.  
  349. select Host, Db, User, Table_name, Column_name, Column_priv from mysql.columns_priv
  350. localhost    grant_test    grant_user    test    b    Insert,Update
  351. localhost    grant_test    grant_user    test    a    Select
  352.  
  353. revoke select(a), update (b) on grant_test.test from grant_user@localhost
  354. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  355. localhost    grant_test    grant_user    test    root@localhost        Insert
  356.  
  357. select Host, Db, User, Table_name, Column_name, Column_priv from mysql.columns_priv
  358. localhost    grant_test    grant_user    test    b    Insert
  359.  
  360. select count(a) from test
  361. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  362. update test set b=4
  363. Error in execute: update command denied to user: 'grant_user@localhost' for table 'test'
  364. grant select(a,b), update (a,b) on grant_test.test to grant_user@localhost
  365. select count(a),count(b) from test where a+b > 0
  366. 3    3
  367.  
  368. insert into test (b) values (9)
  369. update test set b=6 where b > 0
  370. flush privileges
  371. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv
  372. localhost    grant_test    grant_user    test    root@localhost        Select,Insert,Update
  373.  
  374. select Host, Db, User, Table_name, Column_name, Column_priv from mysql.columns_priv
  375. localhost    grant_test    grant_user    test    b    Select,Insert,Update
  376. localhost    grant_test    grant_user    test    a    Select,Update
  377.  
  378. insert into test (a,b) values (12,12)
  379. Error in execute: insert command denied to user: 'grant_user@localhost' for column 'a' in table 'test'
  380. grant insert on grant_test.* to grant_user@localhost
  381. Connecting grant_user
  382. insert into test (a,b) values (13,13)
  383. revoke select(b) on grant_test.test from grant_user@localhost
  384. select count(a) from test where a+b > 0
  385. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  386. update test set b=5 where a=2
  387. grant select on grant_test.test to grant_user@localhost
  388. Connecting grant_user
  389. select count(a) from test where a+b > 0
  390. 4
  391.  
  392. revoke select(b) on grant_test.test from grant_user@localhost
  393. select count(a) from test where a+b > 0
  394. 4
  395.  
  396. revoke select on grant_test.test from grant_user@localhost
  397. Connecting grant_user
  398. select count(a) from test where a+b > 0
  399. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  400. grant select(a) on grant_test.test to grant_user@localhost
  401. select count(a) from test where a+b > 0
  402. Error in execute: select command denied to user: 'grant_user@localhost' for column 'b' in table 'test'
  403. grant select on *.* to grant_user@localhost
  404. Connecting grant_user
  405. select count(a) from test where a+b > 0
  406. 4
  407.  
  408. revoke select on *.* from grant_user@localhost
  409. grant select(b) on grant_test.test to grant_user@localhost
  410. Connecting grant_user
  411. select count(a) from test where a+b > 0
  412. 4
  413.  
  414. select * from mysql.db where user = 'grant_user'
  415. localhost    grant_test    grant_user    N    Y    N    N    N    N    N    N    N    N
  416.  
  417. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv where user = 'grant_user'
  418. localhost    grant_test    grant_user    test    root@localhost        Select,Insert,Update
  419.  
  420. select Host, Db, User, Table_name, Column_name, Column_priv from mysql.columns_priv where user = 'grant_user'
  421. localhost    grant_test    grant_user    test    b    Select,Insert,Update
  422. localhost    grant_test    grant_user    test    a    Select,Update
  423.  
  424. revoke ALL PRIVILEGES on grant_test.test from grant_user@localhost
  425. select count(a) from test
  426. Error in execute: select command denied to user: 'grant_user@localhost' for table 'test'
  427. select * from mysql.user
  428. Error in execute: select command denied to user: 'grant_user@localhost' for table 'user'
  429. select * from mysql.db where user = 'grant_user'
  430. localhost    grant_test    grant_user    N    Y    N    N    N    N    N    N    N    N
  431.  
  432. select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_priv where user = 'grant_user'
  433. select Host, Db, User, Table_name, Column_name, Column_priv from mysql.columns_priv where user = 'grant_user'
  434. delete from user where user='grant_user'
  435. flush privileges
  436. grant ALL PRIVILEGES on grant_test.test to grant_user@localhost identified by 'dummy',  grant_user@127.0.0.1 identified by 'dummy2'
  437. Connecting grant_user
  438. grant SELECT on grant_test.* to grant_user@localhost identified by ''
  439. Connecting grant_user
  440. drop database grant_test
  441. delete from user where user='grant_user'
  442. delete from db where user='grant_user'
  443. delete from tables_priv
  444. delete from columns_priv
  445. flush privileges
  446. end of test
  447.